package action;

import com.opensymphony.xwork2.ActionSupport;
import service.StudentsServiceInter;

/**
 * Created by Administrator on 2017/4/25.
 */
public class QueryAllStudentsAction extends ActionSupport {

/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
private String data;
private StudentsServiceInter studentsServiceImpl;

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public StudentsServiceInter getStudentsServiceImpl() {
        return studentsServiceImpl;
    }

    public void setStudentsServiceImpl(StudentsServiceInter studentsServiceImpl) {
        this.studentsServiceImpl = studentsServiceImpl;
    }

public  String execute(){
        this.setData(this.getStudentsServiceImpl().queryAllStudents());
    return SUCCESS;
     }
}
